home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Macintosh Easy Open / Documentation / Developer / PowerPC / PreRelease.make < prev    next >
Encoding:
Text File  |  1995-08-30  |  2.4 KB  |  99 lines  |  [TEXT/MPS ]

  1. #
  2. #   LowerToUpperCase.make
  3. #
  4. #    MPW makefile for LowerToUpperCase translation extension
  5. #
  6. #    Copyright © 1994, Apple Computer, Inc.  All rights reserved.
  7. #
  8. #
  9. #    Modified from LowerToUpperCaseScrap
  10. #    R.Silva 8/23/95
  11. #
  12. AppName  = LowerToUpperCase
  13. Creator = 'M&Ms'
  14. Type    = 'thng'
  15.  
  16. SymOpt = on   # Set to "on" to build a debuggable version.
  17.  
  18. Source_Folder = :
  19.  
  20. Objects = :Objects:
  21.  
  22. {Objects} ƒ {Source_Folder}
  23.  
  24. Sources = LowerToUpperCase.c
  25.           
  26. Resources = {AppName}.r ∂
  27.             {AppName}.r1
  28.  
  29. PPC_Objects =     {Objects}{AppName}.c.ppc.o
  30.                 
  31. 68K_Objects =     {Objects}{AppName}.c.68k.o
  32.                 
  33. PPCC_Options =      -sym {SymOpt}
  34.  
  35. C_Options = -i "{PPCCIncludes}" -sym {SymOpt}  # Use universal headers for 68K build.
  36.  
  37. R_Options = -i "{CIncludes}"
  38.  
  39. PPC_Libraries =    "{SharedLibraries}"InterfaceLib    ∂
  40.                 "{SharedLibraries}"StdCLib        ∂
  41.                 "{SharedLibraries}"TranslationLib  ∂
  42.                 "{PPCLibraries}"StdCRuntime.o        ∂
  43.                 "{PPCLibraries}"PPCCRuntime.o        ∂
  44.                 "{PPCLibraries}"PPCToolLibs.o        ∂
  45.                 "{PPCLibraries}"TranslationExtInterface.xcoff
  46.                 
  47. 68K_Libraries = "{Libraries}"MacRuntime.o  ∂
  48.                 "{Libraries}"Interface.o
  49.  
  50. PPC_LibEquates =     -l InterfaceLib.xcoff=InterfaceLib ∂
  51.                     -l StdCLib.xcoff=StdCLib ∂
  52.                     -l MathLib.xcoff=MathLib
  53.                                         
  54. Makefile =        {AppName}.make
  55.  
  56. #C =                SC
  57.  
  58. PEF_Options = -b -x
  59.  
  60. #PPCC = MrC
  61.  
  62. {AppName} ƒ {Objects}{AppName}.pef {Objects}{AppName}.68K
  63.     Rez {AppName}.r -a -i {Objects} -o {AppName} {R_Options}
  64.     SetFile {AppName} -a Bi -t thng -c M&Ms 
  65.     
  66. {Objects}{AppName}.pef ƒƒ {Objects}{AppName}.xcoff {Resources}
  67.     makepef  {PEF_Options}                         ∂
  68.              {Objects}{AppName}.xcoff             ∂
  69.              {PPC_LibEquates}                     ∂
  70.              -o {Targ}                    
  71.     Rez {AppName}.r1 -a -o {Targ}
  72.             
  73. {Objects}{AppName}.xcoff ƒƒ {PPC_Objects}
  74.         PPCLink        ∂
  75.         {PPC_Objects}                                            ∂
  76.         {PPC_Libraries}                                             ∂
  77.         -sym {SymOpt}                                             ∂
  78.         -outputFormat  xcoff                                     ∂
  79.         -main TranslateEntry                                     ∂
  80.         -o {Targ}
  81.  
  82. {Objects}{AppName}.68K ƒƒ {68K_Objects} {Resources}
  83.     Link -d -t rsrc -c RSED                         ∂
  84.         "{Libraries}"TranslateExtensionInterface.o    ∂
  85.         {68K_Objects}                                 ∂
  86.         {68K_Libraries}                                ∂
  87.         -sym {SymOpt}                                ∂
  88.         -m TRANSLATEENTRY                             ∂
  89.         -rn -sg MergeSegments -t rsrc -c RSED        ∂
  90.         -rt xlat=128                                ∂
  91.         -o {Targ}
  92.  
  93. .c.ppc.o    ƒ    .c {Makefile}        # Whenever the Makefile changes, all .o's get built.
  94.     {PPCC} {PPCC_Options} {default}.c -o {Targ}
  95.     
  96. .c.68k.o    ƒ    .c {Makefile}        # Whenever the Makefile changes, all .o's get built.
  97.     {C} {C_Options} {default}.c -o {Targ}
  98.  
  99.